import { http } from '@/utils/http/axios'
import { BasicResultModel } from '../model/basicModel'

/**
 * 
 * @date 2025-08-19
 * @author exchenming
 * @Email 276490943@qq.com
 */
enum Api {
  list = '/audio/detail/list',
  get = '/audio/detail/get',
  save = '/audio/detail/save',
  remove = '/audio/detail/remove'
}

export const listDetail = (params: any) => http.get<BasicResultModel>({ url: Api.list, params })
export const getDetail = (params: any) => http.get<BasicResultModel>({ url: Api.get, params })
export const saveDetail = (data: any) => http.post<BasicResultModel>({ url: Api.save, data })
export const removeDetail = (params: any) => http.delete<BasicResultModel>({ url: Api.remove, params })